﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reservation.aspx.cs" Inherits="WebUI.Reservation.Reservation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager runat="server" ID="PageManager1" AutoSizePanelID="Panel1" />
    <ext:Panel runat="server" ID="Panel1" ShowBorder="false" ShowHeader="true" Title="实验室预约申请管理" Layout="Anchor">
    <Items>
    <ext:Grid runat="server" ID="Grid1" ShowHeader="false"  Title="实验室预约情况" AnchorValue="96%" 
                EnableRowNumber="true" EnableBackgroundColor="true" DataKeyNames="id" OnRowCommand="Grid1_RowCommand">
                <Columns>
                    <ext:BoundField DataField="lessonValue.value" HeaderText="课时节次" />
                    <ext:BoundField DataField="labValue.LabName" Width="180px" HeaderText="实验室" />
                    <ext:BoundField DataField="date" Width="120px" HeaderText="日期" DataFormatString="{0:D}" />
                    <ext:BoundField DataField="used" Width="200px" HeaderText="预约用途" />
                    <ext:BoundField DataField="userValue.name" Width="90px" HeaderText="申请人" />
                    <ext:LinkButtonField Icon="Accept" Text="批准" HeaderText="操作" ToolTip="审核申请"  CommandName="Allow" />
                    <ext:LinkButtonField Icon="Decline" Text="取消" HeaderText="操作" ToolTip="取消申请"  CommandName="Decline" />
                </Columns>
            </ext:Grid>
    </Items>
    </ext:Panel>
    </form>
</body>
</html>
